import { axios } from '@/utils/request'

export function goodsList (parameter) {
  return axios({
    url: '/user/Detail/goods_list',
    method: 'post',
    data: parameter
  })
}

export function verifyGoods (parameter) {
  return axios({
    url: '/user/Detail/verify_goods',
    method: 'post',
    data: parameter
  })
}

export function goodsTk (parameter) {
  return axios({
    url: '/user/Detail/goods_tk',
    method: 'post',
    data: parameter
  })
}

export function passDetail (parameter) {
  return axios({
    url: '/user/Detail/pass_detail',
    method: 'post',
    data: parameter
  })
}

export function orderList (parameter) {
  return axios({
    url: '/user/order/order_list',
    method: 'post',
    data: parameter
  })
}

// 过期商品
export function getBecomegoods (parameter) {
  return axios({
    url: '/user/detail/become_goods',
    method: 'post',
    data: parameter
  })
}
// 通过商品
export function getPassgoods (parameter) {
  return axios({
    url: '/admin/Detail/detail_list',
    method: 'post',
    data: parameter
  })
}

export function lossGoods () {
  return axios({
    url: '/user/detail/loss_goods',
    method: 'get',
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    }
  })
}
